import java.util.Scanner;

public class QQNumberTest {
    public static void main(String[] args) {
        QQNumber q = new QQNumber();
        q.acccountNumber = "123";
        q.name = "八戒来了";
        Scanner input = new Scanner(System.in);
        System.out.println("请输入你的在线时长");
        q.onlineDuration = input.nextInt();
        while (true) {
            if (q.onlineDuration >= 100 & q.onlineDuration < 300) {
                q.grade = q.onlineDuration / 100;
                System.out.println("qq号的等级为" + q.grade + "个星星");
                break;
            } else if (q.onlineDuration >= 300 && q.onlineDuration < 900) {
                q.grade = q.onlineDuration / 300;
                int x = (q.onlineDuration - (q.grade * 300)) / 100;
                System.out.println("qq号的等级为" + q.grade + "个太阳" + x + "个星星");
                break;

            } else if (q.onlineDuration >= 900) {
                q.grade = q.onlineDuration / 900;
                int y = (q.onlineDuration - (q.grade * 900)) / 300;
                int z = (q.onlineDuration - (q.grade * 900) - (y * 300)) / 100;
                System.out.println("qq号的等级为" + q.grade + "个皇冠" + y + "个太阳" + z + "个星星");
                break;
            } else {
                System.out.println("没有等级");
                break;
            }
        }
        q.show();


    }
}
